package com.yuyu.qingmangmall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 二级分类Vo
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Catelog2Vo {
    private String catalog1Id; // 一级分类Id
    private List<Catelog3Vo> catalog3List;
    private String id;

    private String name;


    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Catelog3Vo{
        /**
         * 三级分类Vo
         *
         *  "catalog2Id": "1",
         *  "id": "1",
         *  "name": "电子书"
         */
        private String catalog2Id;
        private String id;
        private String name;
    }
}
